package com.wthink.hzgj.menu.viewmodel

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.wthink.hzgj.data.Result
import com.wthink.hzgj.service.DevService
import com.wthink.hzgj.station.data.Station
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch

class MenuListViewModel : ViewModel(){

    val menuList = MutableLiveData(emptyList<String>())

    val arrayList = ArrayList<String>()

    fun addList(){
        arrayList.clear()
        arrayList.add("主页")
        arrayList.add("行车计划")
        arrayList.add("设置中心")
        arrayList.add("设备状态")
        arrayList.add("版本信息")
        arrayList.add("调度申请")
        arrayList.add("存储介质")
        arrayList.add("消息列表")
        arrayList.add("视频拷贝")
        arrayList.add("GPS信息")
        arrayList.add("服务器配置")
        arrayList.add("无线网络信息")
        arrayList.add("车辆信息")
        menuList.postValue(arrayList)
    }
}